<?php echo form_open_multipart();?>
<div class="holder">
    <div class="sub-title red">
        <p><?php echo $this->session->userdata('ms')?$this->session->userdata('ms'):''; $this->session->unset_userdata('ms');?></p>
    </div>
    
    <div class="action">
        <?php echo form_submit('btnSave', 'Save', 'class="add"'); ?>
        <?php echo anchor('product/product/'. $method .'/'.$this->uri->segment(5),'Cancel', 'class="button cancel"');?>
    </div>
    <div style="clear:both"></div>

<div class="holder">
	<table width="100%" class="striped" cellpadding="0" cellspacing="0">
    	<tr>
        	<td width="110"><label class="control-label">Product Name</label></td>
            <td width="230"><input type="text" name="name" style="width:200px" autocomplete="off" value="<?php echo set_value('name') ? set_value('name') : $row[field('name')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('name'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Broken Rate</label></td>
            <td><input type="text" name="broken" style="width:200px" autocomplete="off" value="<?php echo set_value('broken') ? set_value('broken') : $row[field('brokenRate')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('broken'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Shipping</label></td>
            <td><input type="text" name="shipping" style="width:200px" autocomplete="off" value="<?php echo set_value('shipping') ? set_value('shipping') : $row[field('shipping')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('shipping'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Mini Order</label></td>
            <td><input type="text" name="mini_order" style="width:200px" autocomplete="off" value="<?php echo set_value('mini_order') ? set_value('mini_order') : $row[field('miniOrder')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('mini_order'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Payment Term</label></td>
            <td><input type="text" name="payment" style="width:200px" autocomplete="off" value="<?php echo set_value('payment') ? set_value('payment') : $row[field('paymentTerm')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('payment'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Fob Price</label></td>
            <td><input type="text" name="fob" style="width:200px" autocomplete="off" value="<?php echo set_value('fob') ? set_value('fob') : $row[field('fobPrice')]; ?>" /><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('fob'); ?></span></td>
        </tr>
        <tr>
        	<td><label class="control-label">Change Image</label></td>
            <td><input type="file" name="image" /><!--<span style="color: red;"> *</span>--></td>
            <td><span style="color: red;"><?php echo form_error('image'); ?></span></td>
        </tr>
        <tr>
        	<td colspan="3"><label class="control-label">Description</label></td>
        </tr>
        <tr>
            <td colspan="3"><textarea name="description" class="tinyMCE"><?php echo set_value('description') ? set_value('description') : $row[field('description')]; ?></textarea></td>
        </tr>
    </table>

	</div>
</div>
<?php echo form_close();?>  